package top.fzqblog.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 抽离
 * @since 2017-07-15
 */
@TableName("share_info")
public class ShareInfo extends Model<ShareInfo> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "share_id")
	private Long shareId;

	/**
	 * 
	 */
	@TableField(value="file_name")
	private String fileName;

	/**
	 * 
	 */
	@TableField(value="file_url")
	private String fileUrl;

	/**
	 * 
	 */
	@TableField(value="share_time")
	private Date shareTime;

	/**
	 * 
	 */
	@TableField(value="user_id")
	private Integer userId;

	@TableField(value = "file_type")
	private String fileType;

	@TableField(value = "create_time")
	private Date createTime;

	public Long getShareId() {
		return shareId;
	}

	public void setShareId(Long shareId) {
		this.shareId = shareId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public Date getShareTime() {
		return shareTime;
	}

	public void setShareTime(Date shareTime) {
		this.shareTime = shareTime;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	protected Serializable pkVal() {
		return this.shareId;
	}

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ShareInfo{" +
                "shareId=" + shareId +
                ", fileName='" + fileName + '\'' +
                ", fileUrl='" + fileUrl + '\'' +
                ", shareTime=" + shareTime +
                ", userId=" + userId +
                ", fileType='" + fileType + '\'' +
                '}';
    }
}